<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>订单管理管理</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<%@include file="wxOrderList.js" %>
</head>
<body>
	<div class="wrapper wrapper-content">
	<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">订单管理列表</h3>
	</div>
	<div class="panel-body">
		<sys:message content="${message}"/>

	<!-- 搜索 -->
	<div class="accordion-group">
	<div id="collapseTwo" class="accordion-body collapse">
		<div class="accordion-inner">
			<form:form id="searchForm" modelAttribute="wxOrder" class="form form-horizontal well clearfix">
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<label class="label-item single-overflow pull-left" title="用户id：">用户id：</label>
				<form:input path="user.id" htmlEscape="false" maxlength="64"  class=" form-control"/>
			</div>
			<div class="col-xs-12 col-sm-6 col-md-4">
				<label class="label-item single-overflow pull-left" title="用户名：">用户名：</label>
				<form:input path="user.userName" htmlEscape="false" maxlength="64"  class=" form-control"/>
			</div>
			 <div class="col-xs-12 col-sm-6 col-md-4">
				<label class="label-item single-overflow pull-left" title="订单号：">订单号：</label>
				<form:input path="orderNumber" htmlEscape="false" maxlength="64"  class=" form-control"/>
			</div>

				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="设备号：">设备号：</label>
					<form:input path="equipment.id" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>



				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="地址：">地址：</label>
					<form:input path="address" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>

				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="所属代理商：">所属代理商：</label>
 					<form:input path="agents.userName" htmlEscape="false" maxlength="64"  class=" form-control"/>
					<%--<form:input path="" htmlEscape="false" maxlength="64"  class=" form-control"/>--%>
				</div>
				<div class="col-xs-12 col-sm-6 col-md-4">
				<div class="form-group">
					<label class="label-item single-overflow pull-left" title="状态：">&nbsp;状态：</label>
					<div class="col-xs-12 status_select_group">
						<form:checkboxes class="i-checks status_select_all" path="status" items="${fns:getDictList('select_all')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
						<form:checkboxes class="i-checks status_select" path="status" items="${fns:getDictList('order_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</div>
				</div>
			</div>

			<div class="col-xs-12 col-sm-6 col-md-4">
					<div class="form-group">
						<label class="label-item single-overflow pull-left" title="支付类型：">&nbsp;支付类型：</label>
						<div class="col-xs-12">
							<form:checkboxes class="i-checks type_select_all" path="type" items="${fns:getDictList('select_all')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							<form:checkboxes class="i-checks type_select" path="type" items="${fns:getDictList('order_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
						</div>
					</div>
				</div>

				<div class="col-xs-12 col-sm-6 col-md-4">
					<div class="form-group">
						<label class="label-item single-overflow pull-left" title="是否评论：">&nbsp;是否评论：</label>
						<div class="col-xs-12">
							<form:checkboxes class="i-checks comment_select_all" path="commenStatus" items="${fns:getDictList('select_all')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
							<form:checkboxes class="i-checks comment_select" path="commenStatus" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
						</div>
					</div>
				</div>
				<div style="clear: both;"></div>
				<div class="col-xs-12 col-sm-6 col-md-4">
					<div class="form-group">
						<label class="label-item single-overflow pull-left" title="统计开始时间：">&nbsp;统计开始时间：</label>
						<div class="col-xs-12">
							<div class='input-group date' id='setTime' >
								<input type='date'  name="setTime" class="form-control"  />
								<span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
							</div>
						</div>
					</div>
				</div>



				<div class="col-xs-12 col-sm-6 col-md-4">
					<div class="form-group">
						<label class="label-item single-overflow pull-left" title="统计结束时间：">&nbsp;统计结束时间：</label>
						<div class="col-xs-12">
							<div class='input-group date' id='endTime' >
								<input type='date'  name="endTime" class="form-control"  />
								<span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
							</div>
						</div>
					</div>
				</div>


		 <div class="col-xs-12 col-sm-6 col-md-4">
			<div style="margin-top:26px">
			  <a  id="search" class="btn btn-primary btn-rounded  btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
			  <a  id="reset" class="btn btn-primary btn-rounded  btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
			 </div>
	    </div>
	</form:form>
	</div>
	</div>
	</div>

	<!-- 工具栏 -->
	<div id="toolbar">

			<shiro:hasPermission name="web:wxOrder:edit">
			    <button id="edit" class="btn btn-success" disabled onclick="edit()">
	            	<i class="glyphicon glyphicon-edit"></i> 修改
	        	</button>
			</shiro:hasPermission>


	        	<a class="accordion-toggle btn btn-default" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
					<i class="fa fa-search"></i> 检索
				</a>
		<button class="accordion-toggle btn btn-default getMoney"  onclick="getMoney()"  href="#">
			<i class="fa fa-search"></i>查看统计
		</button>
		<p class="getMoneys">
		预购开机总收益：${data.s1}<br/>
		余额支付总收益：${data.s2} <br/>
		续费总额：${data.s3}<br/>
		退款总额：${data.s4}<br/>
		</p>
		    </div>

	<!-- 表格 -->
	<table id="wxOrderTable"   data-toolbar="#toolbar"></table>

    <!-- context menu -->
    <ul id="context-menu" class="dropdown-menu">
    	<shiro:hasPermission name="web:wxOrder:edit">
        <li data-item="edit"><a>编辑</a></li>
        </shiro:hasPermission>
		<li data-item="fenxiao"><a>分销</a></li>
        <li data-item="action1"><a>取消</a></li>
    </ul>
	</div>
	</div>
	</div>
</body>
</html>
